export default class Timer {
  constructor () {
    this.timeId = null
  }
  stop () {
    clearTimeout(this.timeId)
  }
  start (cb, time) {
    this.stop()
    this.timeId = setTimeout(cb, time)
  }
}
